import random


class Game:
    top_score = 0

    def __init__(self, name):
        self.name = name

    @staticmethod
    def show_help():
        print('这是游戏的帮助信息')

    @classmethod
    def show_top_score(cls):
        print(f'历史最高分为：{cls.top_score}')

    def start_game(self):
        print(f'{self.name}游戏中...')
        score = random.randint(10, 100)
        if score > Game.top_score:
            Game.top_score = score
        print(f'本次游戏得分：{score}')


xw = Game('小王')
xh = Game('小胡')
xw.start_game()
xw.show_top_score()
xh.start_game()
xh.show_top_score()
xw.start_game()
xw.show_top_score()
xh.start_game()
xh.show_top_score()
xw.show_help()
